[#assign shiro=JspTaglibs["/WEB-INF/tld/shiro.tld"] /]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.main.title")}</title>
<meta name="author" content="EVOLUTION Team" />
<meta name="copyright" content="EVOLUTION" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/js/nav.js"></script>
 	<script type="text/javascript" src="${base}/jsDebug/debug.js"></script>
	<script type="text/javascript" src="${base}/jsDebug/string.js"></script>
<style type="text/css">
*{
	font: 12px tahoma, Arial, Verdana, sans-serif;
}
html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
</style>
<script type="text/javascript">

</script>
</head>
<body>
	<script type="text/javascript">
		if (self != top) {
			top.location = self.location;
		};
	</script>
	<table class="main">
		<tr>
			<th style="height:60px;" class="logo">
				<a>
					<img src="${base}/resources/admin/images/header_logo.PNG"/>
				</a>
			</th>
			<th>
				<div id="nav" class="nav">
					<ul>
						<li>
							<a href="#sysBaseInfo">首页</a>
							<!--<a href="../common/index.jhtml" target="contentFrame">${message("admin.main.home")}</a>
							-->
						</li>
						[#list ["admin:messageEntry"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#criminalbase">${message("admin.main.messageNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:admin", "admin:role", "admin:area"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#system">${message("admin.main.systemNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:report"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#report">${message("admin.main.reportNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]		
					</ul>
				</div>
				<div class="link">
				</div>
				<div class="link">
					<strong>[@shiro.principal /]</strong>
					${message("admin.main.hello")}!
					<a href="../profile/edit.jhtml" target="contentFrame">[${message("admin.main.profile")}]</a>
					<a href="../logout.jsp" target="_top">[${message("admin.main.logout")}]</a>
				</div>
			</th>
		</tr>
		<tr>	
			<!-- 菜单中a标签中必须放span标签，否则click事件不能被触发iframe刷新页面。 -->
			<td id="menu" class="menu">	
				<dl id="sysBaseInfo">
					<dt>系统简介</dt>
					[@shiro.hasPermission name="admin:messageEntry"]
						<dd>
							<a href="../common/index.jhtml" target="contentFrame"><span>基本信息</span></a>
						</dd>
					[/@shiro.hasPermission]
				</dl>					    
				<dl id="criminalbase">
					<dt>${message("admin.main.messageGroup")}</dt>
					[@shiro.hasPermission name="admin:messageEntry"]
						<dd>
							<a href="../criminalbase/add.jhtml" target="contentFrame"><span>${message("admin.main.messageEntry")}</span></a>
						</dd>
						<dd>
							<a href="../criminalbase/list.jhtml" target="contentFrame"><span>信息查询</span></a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="system">
					[@shiro.hasPermission name="admin:area"]
						<dd>
							<a href="../area/list.jhtml" target="contentFrame"><span>${message("admin.main.area")}</span></a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:admin"]
						<dd>
							<a href="../admin/list.jhtml" target="contentFrame"><span>${message("admin.main.manager")}</span></a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:role"]
						<dd>
							<a href="../role/list.jhtml" target="contentFrame"><span>${message("admin.main.role")}</span></a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="report">
					<dt>${message("admin.main.reportGroup")}</dt>
					[@shiro.hasPermission name="admin:report"]
						<dd>
							<a href="../report/add.jhtml" target="iframe">${message("admin.main.reportTest")}</a>
						</dd>
					[/@shiro.hasPermission]
				</dl>	
			</td>
			<td>
				<iframe id="contentFrame" name="contentFrame" src="#" frameborder="0"></contentFrame>
			</td>
		</tr>
	</table>
</body>
</html>